﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace DL
{
    class Line
    {
        Point p1, p2;

        public Line(Point p, Point q)
        {
            p1 = p;
            p2 = q;
        }

        public void Draw(Pen pen, Graphics g)
        {
            g.DrawLine(pen, p1, p2);
        }
    }
}
